- This pocket-sized power bank keeps my iPhone charged all day (and it's on sale)
- Tired of restless nights? These sleep earbuds helped me doze off and they're $30 off
- The latest AirPods 4 are on sale for their best price yet during Amazon's Spring Sale
- This HP Pavilion at 55% off is the Windows laptop deal to beat right now
- This tiny accessory gave my Android phone thermal vision superpowers (and it's on sale)
How to flush the DNS cache in Linux
systemctl is-active systemd-resolved
sudo systemd-resolve --flush-caches
$ systemd-resolve --statistics
systemctl restart systemd-resolved.service
How to flush the DNS cache when using BIND
sudo rndc dumpdb -cache
sudo rndc flush
sudo cat /var/named/data/cache_dump.db
How to flush the DNS cache when using Dnsmasq
systemctl is-active dnsmasq
service dnsmasq status
sudo systemctl restart dnsmasq
sudo service dnsmasq restart
How to flush the DNS cache when using nscd
systemctl is-active nscd
service nscd status
sudo nscd --invalidate=hosts
sudo nscd -g
$ sudo nscd -g